package com.hissy.common.thread;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.ThreadPoolExecutor.AbortPolicy;
import java.util.concurrent.TimeUnit;

/**
 * Created by zhangyanfei on 2019/4/29.
 *
 * @author zhangyanfei
 * @date 2019/04/29
 */
public class ThreadMain {

    public static void main(String[] args) {
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 2, 8, TimeUnit.MILLISECONDS,
            new LinkedBlockingQueue<>(),
            r -> null,
            new AbortPolicy());
    }
}
